<script setup lang="ts">
interface Props {
    title: string
}
defineOptions({
    name: 'ActiveItem',
})
const props = defineProps<Props>()
</script>

<template>
    <div class="active-item-component">
        <div class="active-title">
            <span>{{ props.title }}</span>
        </div>
        <slot>
            <div class="active-default"></div>
        </slot>
        <div class="base-line" style="margin-top: 30px"></div>
    </div>
</template>

<style scoped lang="scss">
.active-item-component {
    width: 100%;
    min-height: 100px;
    border-radius: 5px;
    padding: 12px;
    color: var(--cardItemText);
    margin-bottom: 16px;
    // background-color: #232323;
    // border: 1px solid #282828;
    // border-radius: 4px;

    .active-title {
        width: 100%;
        display: flex;
        justify-content: center;
        font-size: 18px;
        margin-bottom: 10px;

        > span {
            transition: color 0.3s;
            cursor: pointer;

            &:hover {
                color: var(--cardItemActiveText);
            }
        }
    }
}
</style>
